-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add repo_data option to host registration command #1210
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
@dosas When would you like to get this PR merged? Before the upstream PR is merged or after? IIRC, we nailgun can not define fields that are not implemented in API unless an |
The above mentioned PR is already merged since a few months. The field should be part of the latest foreman? |
@@ -6795,6 +6795,7 @@ def __init__(self, server_config=None, **kwargs): | |||
'update_packages': entity_fields.BooleanField(default=False), | |||
'force': entity_fields.BooleanField(default=False), | |||
'ignore_subman_errors': entity_fields.BooleanField(default=False), | |||
'repo_data': entity_fields.ListField(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dosas Thanks for adding this. Yes, I saw this option being added in foreman recently, and as per apidoc I see it is a Array with repository URL and corresponding GPG key URL
, so I think ListField might not work here, so could you try DictField
instead if it doesn't?
Also, I was wondering if you had any robottelo tests covering the repo_data? To verify this, we could run the PRT with that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it is a list of dicts, so ListField
should be correct. I have robottelo tests using this feature but they are not upstream.
The tests that are using api_register
in robottelo do not use repo_data
currently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @Gauravtalreja1
c7965a4
to
02289d0
Compare
Description of changes
Add repo_data option to host registration command
Upstream API documentation, plugin, or feature links
The foreman upstream api is not up to date so I can only link the PR
theforeman/foreman#10162
Functional demonstration
I am executing it via robottelo I do not know how to extract the raw api call.
Additional Information
None